package com.pentalog.webservice;

import javax.jws.WebMethod;
import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.pentalog.bo.HelloWorldBo;

@WebService
//@Component("helloWs")
public class HelloWorldWS {
	//DI via Spring
//	@Autowired
	HelloWorldBo helloWorldBo;
 
	@WebMethod(exclude=true)
	public void setHelloWorldBo(HelloWorldBo helloWorldBo) {
		this.helloWorldBo = helloWorldBo;
	}
 
	@WebMethod(operationName="getHelloWorld")
	public String getHelloWorld() {
 
		return helloWorldBo.getHelloWorld();
 
	}
}
